﻿<%@ Page Language="C#" MasterPageFile="~/WebSite.Master" AutoEventWireup="true" CodeBehind="CAOrderAudit.aspx.cs"
    Inherits="RN.ERP.Web.CA.CAOrderAudit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Scripts/ligerUI/js/ligerui.min.js"></script>
    <script type="text/javascript">
        /*打开添加窗口*/
        function ShowForm(url) {
            var str = url.split("?");
            if (str[0] != "CAOrderInfo.aspx") {
                var chk = $("input:checked");
                if (chk.length == 0) {
                    $.ligerDialog.warn("请选择一个订单！");
                    return false;
                }
                if (chk.eq(0).attr("class") == "0,019,029,;4001") {
                    url += chk.eq(0).val() + "&audit=1";
                }
                else {
                    $.ligerDialog.warn("该订单已审核！");
                    return false;
                }
            }
            $.ligerDialog.open({ url: url, width: 900, height: 600, title: '订单信息', buttons: [{ text: '关闭', onclick: function (item, dialog) { dialog.close(); } }] });
            return false;
        }
        function CloseWin(data) {
            if (data == "1") {
                location.href = location.href;
            }
        }
    </script>
    <style type="text/css">
        .text_css
        {
            border: 2px;
            height: 24px;
            line-height: 24px;
            margin-top: 8px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <%--<tr>
            <td colspan="4" height="30" class="position">
                您所在的位置：<a href="#">首页</a>&gt;&gt;<span class="blue">订单查看</span>
            </td>
        </tr>--%>
        <tr>
            <td width="19" class="xx_m">
                <img src="../Images/xx_l.jpg" width="19" height="33" />
            </td>
            <td width="24" class="xx_m  tt_xx_icon">
                &nbsp;
            </td>
            <td width="1250" class="xx_m">
                订单列表
            </td>
            <td width="14">
                <img src="../Images/xx_r.jpg" width="14" height="33" />
            </td>
        </tr>
        <tr>
            <td class="left_con">
                &nbsp;
            </td>
            <td colspan="2" style="padding-left: 6px; padding-right: 6px;" valign="top">
                <!--#订单列表-->
                <div>
                    <div class="xian">
                        <div class="about_title">
                            订单列表</div>
                        <div class="i-con-cn">
                            <span class="xtbiao"><a style="cursor: pointer;" onclick="ShowForm('OrderInfoVerify.aspx?guid=');">
                                审核</a></span> <span class="xtbiao">
                                    <asp:LinkButton ID="lbSearch" runat="server" Text="查询" OnClick="lbSearch_Click"></asp:LinkButton></span>
                        </div>
                    </div>
                    <table style="width: 100%; padding-bottom: 10px; background-color: #eaeaea;">
                        <tr style="height: 50px;">
                            <td style="padding-left: 10px; width: 80px;">
                                企业名称：
                            </td>
                            <td style="text-align: left;">
                                <asp:TextBox ID="txtCorpName" runat="server" CssClass="text_css"></asp:TextBox>
                            </td>
                            <td style="padding-left: 10px; width: 80px;">
                                订单编号：
                            </td>
                            <td style="text-align: left;">
                                <asp:TextBox ID="txtCode" runat="server" CssClass="text_css"></asp:TextBox>
                            </td>
                            <td style="padding-left: 10px; width: 80px;">
                                审核状态：
                            </td>
                            <td style="text-align: left;">
                                <asp:DropDownList ID="ddlStatus" runat="server" Height="25" Width="100">
                                    <asp:ListItem Value="1">全部</asp:ListItem>
                                    <asp:ListItem Value="4001" Selected="True">处理中</asp:ListItem>
                                    <asp:ListItem Value="4000">审核通过</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td style="width: 400px;">
                            </td>
                        </tr>
                    </table>
                    <br />
                    <telerik:RadGrid ID="RadGrid1" runat="server" ShowStatusBar="True" AllowSorting="true"
                        CssClass="tab" AllowFilteringByColumn="false" CellSpacing="0" Culture="zh-CN"
                        AllowPaging="true" AllowCustomPaging="true" Width="100%" OnItemDataBound="RadGrid1_temDataBound"
                        PageSize="20" OnNeedDataSource="RadGrid1_NeedDataSource">
                        <MasterTableView AutoGenerateColumns="false" DataKeyNames="ID" NoMasterRecordsText="暂无数据"
                            InsertItemPageIndexAction="ShowItemOnCurrentPage" CommandItemDisplay="Top">
                            <CommandItemSettings ExportToPdfText="Export to PDF" />
                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="true">
                            </RowIndicatorColumn>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                </EditColumn>
                            </EditFormSettings>
                            <PagerStyle AlwaysVisible="True" />
                            <CommandItemTemplate>
                            </CommandItemTemplate>
                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridBoundColumn HeaderText="企业名称" UniqueName="CorpName" HeaderStyle-HorizontalAlign="Center"
                                    DataField="CorpName" HeaderStyle-Width="10%">
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn HeaderText="选择" UniqueName="Choose" HeaderStyle-HorizontalAlign="Center"
                                    HeaderStyle-Width="4%">
                                    <ItemTemplate>
                                        <input id="ckbChoose" type="checkbox" class='<%#Eval("FlowCode") %>' value='<%#Eval("KeyGUID") %>'
                                            runat="server" />
                                        <asp:Label ID="lbId" runat="server" Text='<%#Eval("ID") %>' Visible="false"></asp:Label>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="订单编号" UniqueName="Code" HeaderStyle-HorizontalAlign="Center"
                                    HeaderStyle-Width="10%">
                                    <ItemTemplate>
                                        <a style="cursor: pointer; color: Black;" onclick='ShowForm("CAOrderInfo.aspx?guid=<%#Eval("KeyGUID") %>&group=<%# Eval("GroupCode")%>");'>
                                            <%#Eval("Code")%></a>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn DataField="iTitle" HeaderText="发票抬头" UniqueName="iTitle"
                                    HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="9%">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="LinkPerson" HeaderText="联系人" UniqueName="LinkPerson"
                                    HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="5%">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="officeTel" HeaderText="联系电话" UniqueName="officeTel"
                                    HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="8%">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="SendAddress" HeaderText="寄送地址" UniqueName="SendAddress"
                                    HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="10%">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="GroupName" HeaderText="产品分类" UniqueName="GroupName"
                                    HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="7%">
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn DataField="StrStatus" FilterListOptions="VaryByDataType"
                                    HeaderText="订单状态" UniqueName="StrStatus" HeaderStyle-HorizontalAlign="Center"
                                    HeaderStyle-Width="6%">
                                    <ItemTemplate>
                                        <%#Eval("StrStatus")%>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn DataField="RegisterDate" HeaderText="订单生成时间" UniqueName="RegisterDate"
                                    HeaderStyle-HorizontalAlign="Center" DataFormatString="{0:yyyy-MM-dd}" HeaderStyle-Width="8%"
                                    SortExpression="RegisterDate" FilterListOptions="VaryByDataType">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn HeaderText="证书名称" UniqueName="Title" HeaderStyle-HorizontalAlign="Center"
                                    DataField="Title" HeaderStyle-Width="8%">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="bCAKind" HeaderText="产品类型" UniqueName="bCAKind"
                                    HeaderStyle-HorizontalAlign="Center">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="SumPay" HeaderText="购买金额<br/>(单位：元)" UniqueName="SumPay"
                                    HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="7%">
                                </telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                        <ClientSettings EnableRowHoverStyle="true">
                            <Selecting AllowRowSelect="True"></Selecting>
                        </ClientSettings>
                        <PagerStyle AlwaysVisible="True" />
                        <FilterMenu EnableImageSprites="False">
                        </FilterMenu>
                    </telerik:RadGrid>
                </div>
                <!--#订单列表结束-->
            </td>
            <td class="right_con">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="con_m tt_left_bottom">
                &nbsp;
            </td>
            <td colspan="2" class="con_m">
                &nbsp;
            </td>
            <td class="tt_right_bottom">
                &nbsp;
            </td>
        </tr>
    </table>
    <div id="UDialog" style="margin: auto; width: 900px;">
        <telerik:RadAjaxLoadingPanel runat="server" ID="gridLoadingPanel">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
            <Windows>
                <telerik:RadWindow ID="UserDialog" runat="server" Title="订单信息" Height="600px" Behaviors="Close"
                    Width="900px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false"
                    Modal="true" Skin="WebBlue" VisibleStatusbar="False">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
    </div>
    <asp:HiddenField ID="hidGroup" runat="server" />
    <asp:HiddenField ID="hidAreaCode" runat="server" />
</asp:Content>
